package org.jeecg.modules.demo.sopayorder.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import javax.persistence.Transient;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: so_payorder
 * @Author: jeecg-boot
 * @Date:   2021-12-18
 * @Version: V1.0
 */
@Data
@TableName("so_payorder")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="so_payorder对象", description="so_payorder")
public class SoPayorder implements Serializable {
    private static final long serialVersionUID = 1L;

	/**订单状态（0：未审，1：已审，2：已关闭）*/
	@Excel(name = "订单状态（0：未审，1：已审，2：已关闭）", width = 15)
    @ApiModelProperty(value = "订单状态（0：未审，1：已审，2：已关闭）")
    @Dict(dicCode= "checkState")
    private java.lang.Integer shenhe;
	/**删除状态（0：正常，1：已删）*/
	@Excel(name = "删除状态（0：正常，1：已删）", width = 15)
    @ApiModelProperty(value = "删除状态（0：正常，1：已删）")
    private java.lang.Integer shanchu;
	/**审核人*/
	@Excel(name = "审核人", width = 15)
    @ApiModelProperty(value = "审核人")
    @Dict(dictTable = "SYS_USER",dicCode = "ID",dicText = "REALNAME")
    private java.lang.String saleman;
	/**付款类型（0：普通付款，1：预付款）*/
	@Excel(name = "付款类型（0：普通付款，1：预付款）", width = 15)
    @ApiModelProperty(value = "付款类型（0：普通付款，1：预付款）")
    @Dict(dicCode = "sopayorderTos")
    private java.lang.Integer busType;
	/**预付款单据编号*/
	@Excel(name = "预付款单据编号", width = 15)
    @ApiModelProperty(value = "预付款单据编号")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private java.lang.String receiptNumber;
	/**主键ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private java.lang.String id;
	/**付款单编号*/
	@Excel(name = "付款单编号", width = 15)
    @ApiModelProperty(value = "付款单编号")
    private java.lang.String sopNo;
	/**发票单号*/
	@Excel(name = "发票单号", width = 15)
    @ApiModelProperty(value = "发票单号")
    private java.lang.String puiNo;
	/**付款金额*/
	@Excel(name = "应付金额", width = 15)
    @ApiModelProperty(value = "应付金额")
    private java.math.BigDecimal sopAmount;
	/**单据时间*/
	@Excel(name = "单据时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "单据时间")
    private java.util.Date sopDate;
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;

    /**业务员*/
    @Excel(name = "业务员", width = 15)
    @ApiModelProperty(value = "业务员")
    @Dict(dictTable = "SYS_USER",dicCode = "ID",dicText = "REALNAME")
    private java.lang.String poStaff;

    @Dict(dicCode = "jsfs")
    private Integer jsfs;
    //部门
    @Dict(dictTable = "SYS_DEPART",dicCode = "ID",dicText = "DEPART_NAME")
    private String department;

    /**采购订单号*/
    @Excel(name = "采购订单号", width = 15)
    @ApiModelProperty(value = "采购订单号")
    private String poOrder;

    private String yhname;
    //实付金额
    private BigDecimal sfamount;

    private java.lang.String customerId;
    private String fkfj;
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal yfuseje;
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal yfsyje;
    private BigDecimal fkjine;
    /**
     * 租户ID
     */
    private Integer tenantId;
    private  String tradecode;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Date shTime;
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String yfdkorder;

    /**单据编号*/
    @Excel(name = "单据编号", width = 15)
    @ApiModelProperty(value = "单据编号")
    private java.lang.String qcyfNo;


    @TableField(exist = false)
    private String column;
    @TableField(exist = false)
    private String order;

    private String chumdwmc;
    @Dict(dictTable = "PJ_PROJECT",dicCode = "ID",dicText = "PJ_NAME")
    @TableField(exist = false)
    private String project;
    @TableField(exist = false)
    private BigDecimal supamount;
    /**
     * 创建人
     */
    private String createBy;


    private String sysOrgCode;
}
